package com.fanrui.code.entity;

import com.fanrui.code.entity.Family;
import com.fanrui.code.entity.FamilyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FamilyMapper {
    long countByExample(FamilyExample example);

    int deleteByExample(FamilyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Family record);

    int insertSelective(Family record);

    List<Family> selectByExample(FamilyExample example);

    Family selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Family record, @Param("example") FamilyExample example);

    int updateByExample(@Param("record") Family record, @Param("example") FamilyExample example);

    int updateByPrimaryKeySelective(Family record);

    int updateByPrimaryKey(Family record);
    
	// 因为每次重新生成都要覆盖所以在这里备注
	List<Family> selectAllItem();

	List<Family> queryByFamilyName(String familyName);

	void updataFamilyName(String name);
}